import {handleActions} from 'redux-actions'
import { get_products_success } from '../actions/product'


const initState = []

const handleSuccess = (state, action) => action.payload

const productsRuducer = handleActions({
  [get_products_success]: handleSuccess
},initState)

export default productsRuducer